package com.th.apicenter.vivo.dto;

import lombok.Data;

import java.util.List;
import java.util.Map;


@Data
public class VIVOBehaviorUploadDTO {

    private String pageUrl;                             //页面url,当事件源类型为Web时,该字段必传
    private String pkgName;                             //应用包名,当事件源类型为APP/Quickapp时,该字段必传
    private String srcId;                               //事件源id,营销平台事件管理工具中新建，每个产品在每个账号下仅可新建一个
    private String srcType;                             //事件源类型，枚举值：APP/Web/Quickapp/offline(不区分大小写)
    private List<DataList> dataList;

    @Data
    public static class DataList {
        private String creativeId;
        private String cvParam;
        private String cvTime;
        private String cvType;
        private String userId;                          //标识的值，如IMEI号等,当事件源类型为APP时,该字段必传。IMEI：15-17位，明文 IMEI_MD5 ：32位，加密 OAID：64位，明文 OAID_MD5：32位   加密INSTALL_REFERRER：选填，但需确保installReferrer字段有值 OTHER：不限 OPENID：不限
        private String dlrSrc;
        private String userIdType;
        private String requestId;
        private String CvCustom;
        private List<Map<String, String>> extParam;
    }

}

/**
 * {
 * "dataList": [{
 * "creativeId":"CreativeId_0000000000000",
 * "cvParam":"param1:value1,param2:value2",
 * "cvTime":1568617282000,
 * "cvType":"ACTIVATION",
 * "userId":"oaidKSByShAaVlpqwWbECdNVqKVJAcTtCOrKGXisGyJQXqcQgIwNoGpZwAjpDUWt",
 * "dlrSrc":"DlrSrc0",
 * "userIdType":"oaid",
 * "requestId":"RequestId_111111111111122",
 * "CvCustom":"ddddddddd",
 * "extParam":{
 * "payAmount":"1234567", "unionId":"abcde"
 * }
 * }],
 * "pageUrl":"abc",
 * "pkgName":"com.vivo.sen2",
 * "srcId":"ds-201909120272",
 * "srcType":"app"
 * }
 */
